﻿<%@ Page Title="Edit Order" MasterPageFile="../masterpages/umbracoPage.Master"
    ValidateRequest="false" Language="c#" CodeBehind="editOrder.aspx.cs" AutoEventWireup="True"
    Inherits="CommerceForUmbraco.adminSection.commerce.editOrder" %>

<%@ Register TagPrefix="cc1" Namespace="umbraco.uicontrols" Assembly="controls" %>


<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
  <script src="../../js/prototype.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="body" runat="server">

    <cc1:TabView runat="server" ID="tabControl" Width="552px" Height="692px" />
    
      <cc1:Pane ID="Pane1" runat="server" Height="600px" Width="330px">
        <cc1:PropertyPanel runat="server" ID="pp_ordernumber">
              <asp:Label ID="orderNumber" runat="server" Width="300" CssClass="guiInputText"></asp:Label>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_orderdate">
              <asp:Panel ID="pnlOrderDate" runat="server" >
            </asp:Panel>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_orderStatus">
            <asp:Label ID="orderStatusDisplay" runat="server" Width="300" CssClass="guiInputText"></asp:Label>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_billto">
              <asp:Label ID="billTo" runat="server" Width="300" CssClass="guiInputText"></asp:Label>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_shipto">
              <asp:Label ID="shipTo" runat="server" Width="300" CssClass="guiInputText"></asp:Label>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_email">
            <asp:Label ID="emailAddress" runat="server" CssClass="guiInputText" Width="300" ></asp:Label>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_coupon">
              <asp:Label ID="CouponCodes" runat="server" Width="300" CssClass="guiInputText"></asp:Label>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_shipping_method">
            <asp:DropDownList ID="shippingMethod" runat="server" CssClass="guiInputText" Width="300"></asp:DropDownList>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_tracking">
              <asp:TextBox ID="TrackingNumber" runat="server" Width="300" CssClass="guiInputText"></asp:TextBox>
              <asp:Button ID="shipButton" runat="server" Text="Ship" 
                  onclick="shipButton_Click" />
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_cancel">
            <asp:TextBox ID="cancelNote" runat="server" Width="300" Height="100" CssClass="guiInputText"></asp:TextBox>
            <asp:Button ID="cancelButton" runat="server" Text="Cancel" 
                onclick="cancelButton_Click" />
        </cc1:PropertyPanel>
       </cc1:Pane> 
      <cc1:Pane ID="Pane2" runat="server">
        <cc1:PropertyPanel runat="server" ID="pp_order_items">
              <asp:Label ID="OrderItems" runat="server" Width="300" CssClass="guiInputText"></asp:Label>
        </cc1:PropertyPanel>
       </cc1:Pane>
      <cc1:Pane ID="Pane3" runat="server">
        <cc1:PropertyPanel ID="pp_notestatus" runat="server">
            <asp:DropDownList ID="orderStatusDDL" runat="server" Width="300" CssClass="guiInputText"></asp:DropDownList>
        </cc1:PropertyPanel>
        <cc1:PropertyPanel runat="server" ID="pp_notes">
            <asp:TextBox ID="OrderNote" runat="server" Width="300" Height="100" CssClass="guiInputText"></asp:TextBox>
            &nbsp;
            <asp:Button ID="AddNoteButton" runat="server" Text="Add Note" onclick="AddNoteButton_Click" />
        </cc1:PropertyPanel>
            <p>&nbsp;</p>
        <cc1:PropertyPanel ID="pp_notelist" runat="server">
            <asp:GridView ID="gNotes" runat="server" AutoGenerateColumns="False" 
                CssClass="guiInputText" CellPadding="6" ForeColor="#333333" GridLines="None">
                <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
                <Columns>
                <asp:BoundField DataField="createdOn" DataFormatString="{0:d}" HeaderText="Date" />
                <asp:BoundField DataField="Note" HeaderText="Note" />
                <asp:BoundField DataField="OrderStatus" HeaderText="Status" />
                </Columns>
                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        	</asp:GridView>
         </cc1:PropertyPanel>
      </cc1:Pane> 
      <cc1:Pane ID="Pane4" runat="server">
       <cc1:PropertyPanel runat="server" ID="pp_transactions">
        <asp:GridView ID="gTransactions" runat="server" AutoGenerateColumns="False" 
               CssClass="guiInputText" CellPadding="6" ForeColor="#333333" GridLines="None">
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="TransactionDate" DataFormatString="{0:d}" HeaderText="Date" />
                <asp:BoundField DataField="Amount" DataFormatString="{0:c}" HeaderText="Amount" HtmlEncode="False" />
                <asp:BoundField DataField="TransactionType" HeaderText="Type" />
            </Columns>
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
        </cc1:PropertyPanel>
      </cc1:Pane>
       
</asp:Content>